<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <title></title>
    <link rel="stylesheet" href="css/phone_two.css" media="screen" title="no title">
    <script src="js/jquery-3.1.0.js" charset="utf-8"></script>
  </head>
  <body>
    <div class="wrap" id="wrap">
      <!-- 隐藏在左边的菜单 -->
      <div class="menu" id="menu">
        <div class="headimg" >
          <img  alt="" id="headimg"/>
        </div>
        <div class="nickname" id="nickname">

        </div>
        <div class="city" id="city">

        </div>
        <div class="love" id="love">
          My Love
        </div>
      </div>
      <div class="menu_botton" id="menu_botton">

      </div>
      <div class="wrap_little" id="wrap_little">
        <div class="menu_little" id="menu_little">
          <a class="aaa" href="gaoxiao.html"><img src="img/gaoxiao.png" alt="" /><span>搞笑视频</span></a>
          <a class="aaa" href="niuren.html"><img src="img/niuren.png" alt="" /><span>牛人翻唱</span></a>
          <a class="aaa" href="caiyi.html"><img src="img/caiyi.png" alt="" /><span>才艺视频</span></a>
          <a class="aaa" href="yinyue.html"><img src="img/yinyue.png" alt="" /><span>音乐风云</span></a>
          <a class="aaa" id="a5" href="wudao.html"><img src="img/wudao.png" alt="" /><span>舞蹈视频</span></a>
        </div>
        <div class="next" id="next">
          <img src="img/next.png" alt="" />
        </div>
        <div class="last" id="last">
          <img src="img/last.png" alt="" />
        </div>
      </div>
    </div>
  </body>
  <script src="js/phone_two.js" charset="utf-8"></script>
  <script type="text/javascript">
  var headimgurl = document.getElementById("headimg");//头像标签
    if (window.XMLHttpRequest) {
      var  request = new XMLHttpRequest();
    }else{
      var request = new ActiveXObject("Microsoft.XMLHTTP");
    }
    request.open("GET","http://1.happyer.applinzi.com/userInfo.php",true);
    request.send(null);
    request.onreadystatechange = function(){
      if (request.readyState==4&&request.status == 200) {
         headimgurl.src= request.responseText;
         var nickname = document.getElementById("nickname");//昵称标签
           if (window.XMLHttpRequest) {
          var  request1 = new XMLHttpRequest();
          }else{
          var request1 = new ActiveXObject("Microsoft.XMLHTTP");
          }
          request1.open("GET","http://1.happyer.applinzi.com/nickname.php",true);
          request1.send(null);
          request1.onreadystatechange = function(){
          if (request1.readyState==4&&request1.status == 200) {
            nickname.innerHTML = request1.responseText;
          }
        }
      };
    }

  </script>
</html>
